{% extends 'portraits.html' %}
{% load i18n %}
{% load thumbnail %}
{% block content %}


{% for photo in gallery.galleryphoto_set.all %}
    {% cycle '<tr>' '' '' '' '' %}
    <td align="center" width="200" valign=top class="styleBLOCK">
        <a href="{{ photo.photo.url }}" rel="lytebox[{{ gallery.slug }}]" title='{{ photo.title }}'>
        <img src='{{ photo.photo.name|thumbnail:"width=120,height=120" }}' title='{{ photo.title }}' class="im" alt='{{ photo.title }}' /></a><br /><b><p align="center">{{ photo.title }}</p></b>
    </td>
    {% cycle '' '' '' '' '</tr>' %}
{% endfor %}

{% endblock %}